<?php
    $url = explode('.',end($ruta));
	
	if(!$url[1]=='htm'){
        $tipo = '301 Moved Permanently';    
		$url = URL;
		Header("HTTP/1.1 $tipo");
		Header("Location: $url");
        die();	
	}

	//------- Busco la publicacion
    $Pub = busco_publicacion($url[0]);
    $cat_id = $Pub['categoria_id'];

    $mTitle          = $Pub['Categoria']['titulo1'].' '.$Pub['titulo'];
    $mRobots         = $Pub['robots'];
    $mKeywords       = $Pub['keywords'];
    $mDescription    = $Pub['descripcion'];
    $mImagen         = $Pub['thumbs1'];


    $breadcrumb[0]['href']  = URL;
    $breadcrumb[0]['title'] = $Traducciones['home'];
    $breadcrumb[1]['href']  = URL.'/'.$ruta[0].'/'.$ruta[1];
    $breadcrumb[1]['title'] = $Pub['titulo1'];


    include_once(ROOT.'/inc/inc_publicidad.php');
    include_once(ROOT.'/html/header.html.php');
    include_once(ROOT.'/html/ver.html.php');

    include_once(ROOT.'/html/footer.html.php');
	die();
?>